home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / HomePublisher Demo / AHP Pouch / AutoCreate / Flyers / _Traditional / _Traditional
Encoding:
Text File  |  1993-09-17  |  4.9 KB  |  161 lines  |  [SGPA/SCPG]

  1. on Build
  2. dodocsetup
  3. locatefonts
  4. newpublication pages 1 columns 0 PageWidth 594 PageHeight 841 pageorientation portrait topmargin 38 bottommargin 38 leftmargin 35 rightmargin 35
  5. set gridsettings to 18,18
  6. set displayinvisibles to false
  7. set facingpages to false
  8. set gridsnap to false
  9. set lockguides to false
  10. set magneticguides to false
  11. set printcoloroptions to false
  12. set printcolornames to true
  13. set printcutouts to true
  14. set printregistrationmarks to false
  15. set printmarksoptions to no
  16. set printpageoptions to all
  17. set printtypeoptions to publication
  18. set spotcolor 1 to 0,0,0
  19. set spotcolor 2 to 65535,65535,65535
  20. set spotcolor 3 to 62167,2134,34028
  21. set spotcolor 4 to 0,32768,4528
  22. set spotcolor 5 to 577,43860,60159
  23. set spotcolor 6 to 56683,2242,1698
  24. set spotcolor 7 to 0,0,54272
  25. set spotcolor 8 to 64512,62333,1327
  26. set mousecursor to roll
  27. set mousecursor to roll
  28. goto rightbackground
  29. PublicationSetup columns 1
  30. set mousecursor to roll
  31. goto page 1
  32. -- •p1 1•
  33. draw Rectangle 35,765,70,803
  34. set framelinetype of last object to 2
  35. set fillpattern of last object to 0
  36. set croprectangle of last object to 0,0,36,39
  37. -- •p1 2•
  38. draw Rectangle 35,344,393,587
  39. set framelinetype of last object to 2
  40. set shadowoffset of last object to 2
  41. set shadowpattern of last object to 10
  42. set croprectangle of last object to 0,0,358,243
  43. -- •p1 3•
  44. draw Rectangle 406,344,559,373
  45. set locked of last object to true
  46. set framelinetype of last object to 2
  47. set fillpattern of last object to 18
  48. set croprectangle of last object to 0,0,153,29
  49. -- •p1 4•
  50. draw Line 406,344,406,803
  51. set locked of last object to true
  52. set framelinetype of last object to 2
  53. set fillpattern of last object to 18
  54. -- •p1 5•
  55. draw rectangle 35,31,559,107
  56. set locked of last object to true
  57. set framelinetype of last object to 2
  58. set fillpattern of last object to 0
  59. set linepattern of last object to 0
  60. -- •p1 6•
  61. draw rectangle 35,106,559,145
  62. set locked of last object to true
  63. set framelinetype of last object to 2
  64. set fillpattern of last object to 0
  65. set linepattern of last object to 0
  66. -- •p1 7•
  67. draw rectangle 35,161,559,340
  68. -- •p1 8•
  69. draw rectangle 35,594,399,742
  70. set framelinetype of last object to 2
  71. set fillpattern of last object to 0
  72. set linepattern of last object to 0
  73. -- •p1 9•
  74. draw rectangle 417,374,559,803
  75. set locked of last object to true
  76. set framelinetype of last object to 2
  77. set fillpattern of last object to 0
  78. set linepattern of last object to 0
  79. -- •p1 10•
  80. draw rectangle 79,766,370,809
  81. set locked of last object to true
  82. set framelinetype of last object to 2
  83. set linepattern of last object to 0
  84. PublicationSetup columns 1
  85. progressdialog show "creating stories"
  86. set the mousecursor to roll
  87. link page objects 1,7,1,8 to story "!bodytext"
  88. set the name of last story to "bodytext"
  89. put space into story "bodytext"
  90. select all text in story "bodytext"
  91. textsetup Times "bold,italic" 18 center
  92. set the mousecursor to roll
  93. link page objects 1,9 to story "!selling_points"
  94. set the name of last story to "selling_points"
  95. put space into story "selling_points"
  96. select all text in story "selling_points"
  97. textsetup Helvetica "bold,italic" 14 left
  98. set the mousecursor to roll
  99. link page objects 1,10 to story "!address"
  100. set the name of last story to "address"
  101. put space into story "address"
  102. select all text in story "address"
  103. textsetup Times "bold" 14 left
  104. set the mousecursor to roll
  105. link page objects 1,6 to story "!subhead"
  106. set the name of last story to "subhead"
  107. put space into story "subhead"
  108. select all text in story "subhead"
  109. textsetup Times "bold,italic" 18 center
  110. set the mousecursor to roll
  111. link page objects 1,5 to story "!headline"
  112. set the name of last story to "headline"
  113. put space into story "headline"
  114. select all text in story "headline"
  115. textsetup Times "bold" 48 center
  116. choose maintool
  117. progressdialog hide
  118. end Build
  119.  
  120.  
  121. on locatefonts
  122. global vHelvetica, vPalatino, vTimes, vNewYork, systemfonts
  123. put fontfamilies into systemfonts
  124. if systemfonts contains "New York" then put "New York"  into vNewYork
  125. else put "Geneva" into vNewYork
  126. if systemfonts contains "helvetica" then put "helvetica"  into vHelvetica
  127. else put "Geneva" into vHelvetica
  128. if systemfonts contains "Times" then put "Times" into vTimes
  129. else put vNewYork into vTimes
  130. if systemfonts contains "Palatino" then put "Palatino" into vPalatino
  131. else put vTimes into vPalatino
  132.  
  133. end locatefonts
  134.  
  135. on dodocsetup
  136. global usersOldMeasurement
  137. set lockscreen to true
  138. Set ShuffleTextObjects to false
  139. put measurements into usersOldMeasurement
  140. set measurements to points
  141. set displayguides to false
  142. set view to actual
  143. set itemdel to ","
  144. set worddel to space
  145. set linedel to cr
  146. set saveglobals to true
  147. progressdialog open
  148. progressdialog show "creating publication"
  149. end dodocsetup
  150.  
  151. on textsetup thefont, theface, thesize, thejust
  152. global vHelvetica, vPalatino, vTimes, vNewYork
  153. set styleRecomposition to false
  154. set the textfont to value("v"&thefont)
  155. do "set the textface to "&theface
  156. set the textsize to thesize
  157. set the rulerjustification to thejust
  158. set styleRecomposition to true
  159. end textsetup
  160.  
  161.         Lå<BÏ